package com.cy.myblog.service.impl;

import com.cy.myblog.dao.BaseDaoI;
import com.cy.myblog.model.TloginInfo;
import com.cy.myblog.service.LoginInfoServiceI;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("loginInfoService")
public class LoginInfoServiceImpl implements LoginInfoServiceI {

	private BaseDaoI<TloginInfo> baseDao;

	public BaseDaoI<TloginInfo> getBaseDao() {
		return baseDao;
	}

	@Autowired
	public void setBaseDao(BaseDaoI<TloginInfo> baseDao) {
		this.baseDao = baseDao;
	}

	@Override
	public void save(TloginInfo info) {
		baseDao.save(info);
	}

	@Override
	public TloginInfo getById(String id) {
		return baseDao.getById(TloginInfo.class, id);
	}

	@Override
	public void update(TloginInfo info) {
		baseDao.update(info);
	}

	
}
